/**
 * 获取token
 * @returns {boolean}
 */
export const getToken = () => {
    return localStorage.getItem("token")
}

/**
 * 清除所有保存信息
 */
export const clearStorage = () => {
    localStorage.clear()
}

/**
 * 存储信息
 * @param {*} key 
 * @param {*} value 
 */
export const setToken = (key,value) => {
    localStorage.setItem(key, value)
}

/**
 * 获取信息
 *  
 */
export const getStorage = (key) => {
    return localStorage.getItem(key) || ""
}